﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.SqlServer.Management.Smo;
using Microsoft.SqlServer.Management.Smo.Agent;
using Microsoft.SqlServer.Management.Nmo;
//using Microsoft.SqlServer.ConnectionInfo;
using Microsoft.SqlServer.Management;
using System.Data.Sql;
using System.Data.SqlClient;

namespace GiaoVien_QuanLy_DeTai
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void hêĐaoTaoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "HEDAOTAO_Form")
                {
                    f.Activate();
                    return;
                }
            HEDAOTAO_Form frm = new HEDAOTAO_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void khoaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "KHOA_Form")
                {
                    f.Activate();
                    return;
                }
            KHOA_Form frm = new KHOA_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void hocViToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "HOCVI_Form")
                {
                    f.Activate();
                    return;
                }
            HOCVI_Form frm = new HOCVI_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void loaiĐêTaiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "LOAIDETAI_Form")
                {
                    f.Activate();
                    return;
                }
            LOAIDETAI_Form frm = new LOAIDETAI_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void mônHocToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "MONHOC_Form")
                {
                    f.Activate();
                    return;
                }
            MONHOC_Form frm = new MONHOC_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void thamSôToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "THAMSO_Form")
                {
                    f.Activate();
                    return;
                }
            THAMSO_Form frm = new THAMSO_Form();
            frm.MdiParent = this;
            frm.Show();
        }

   

   

        private void chứcVụToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "CHUCVU_Form")
                {
                    f.Activate();
                    return;
                }
            CHUCVU_Form frm = new CHUCVU_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void lớpHọcToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "LOPHOC_Form")
                {
                    f.Activate();
                    return;
                }
            LOPHOC_Form frm = new LOPHOC_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void đềTàiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "DETAI_Form")
                {
                    f.Activate();
                    return;
                }
            DETAI_Form frm = new DETAI_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void nhậnXétĐềTàiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "NX_DETAI_Form")
                {
                    f.Activate();
                    return;
                }
            NX_DETAI_Form frm = new NX_DETAI_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void giảngDạyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "GIANGDAY_Form")
                {
                    f.Activate();
                    return;
                }
            GIANGDAY_Form frm = new GIANGDAY_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void giáoViênToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "GIAOVIEN_Form")
                {
                    f.Activate();
                    return;
                }
            GIAOVIEN_Form frm = new GIAOVIEN_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void lươngCănBảnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "LUONGCB_Form")
                {
                    f.Activate();
                    return;
                }
            LUONGCB_Form frm = new LUONGCB_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void lươngGiảngDạyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "LUONGGD_Form")
                {
                    f.Activate();
                    return;
                }
            LUONGGD_Form frm = new LUONGGD_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void lươngKiemNghiệmToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "LUONGKN_Form")
                {
                    f.Activate();
                    return;
                }
            LUONGKN_Form frm = new LUONGKN_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void baoCaoLươngCănBanToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "REPORT_LUONGCB_Form")
                {
                    f.Activate();
                    return;
                }
            REPORT_LUONGCB_Form frm = new REPORT_LUONGCB_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void baoCaoLươngGiangDayToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "REPORT_LUONGGD_Form")
                {
                    f.Activate();
                    return;
                }
            REPORT_LUONGGD_Form frm = new REPORT_LUONGGD_Form();
            frm.MdiParent = this;
            frm.Show();
        }

        private void baoCaoLươngKiêmNghiêmToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
                if (f.Name == "REPORT_LUONGKN_Form")
                {
                    f.Activate();
                    return;
                }
            REPORT_LUONGKN_Form frm = new REPORT_LUONGKN_Form();
            frm.MdiParent = this;
            frm.Show();
        }

       

     
    
       

       
    }
}
